package com.landscope.issue.mapper;

import com.landscope.issue.entity.Monitordata;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MonitordataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Monitordata record);

    int insertSelective(Monitordata record);

    Monitordata selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Monitordata record);

    int updateByPrimaryKey(Monitordata record);

    List<Monitordata> findByCode(@Param("projectCode") String projectCode,
                                 @Param("startTime") String startTime,
                                 @Param("endTime") String endTime);
    Monitordata findLastByCode(@Param("projectCode") String projectCode);

    Integer findHighAlarmvalDaysThisWeek(@Param("projectCode") String projectCode,
                                         @Param("startTime") String startTime,
                                         @Param("endTime") String endTime);
}